package com.insurance.pingan.bid.dto.apply;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Style
 * @version 1.0
 * @date 2020/10/25
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class BaseInfo {

    /**
     * 产品编码(MP05000038)
     */
    private String productCode;

    private String applyPolicyNo;

    /**
     * 保险止期,格式为:yyyy-MM-dd或yyyy/MM/dd
     */
    private String insuranceEndDate;

    /**
     * 保单号用于批改接口
     */
    private String policyNo;

    public BaseInfo(String insuranceEndDate) {
        this.insuranceEndDate = insuranceEndDate;
    }

    public BaseInfo(String productCode, String applyPolicyNo) {
        this.productCode = productCode;
        this.applyPolicyNo = applyPolicyNo;
    }

    public BaseInfo(String policyNo, String productCode, String applyPolicyNo){
        this.policyNo = policyNo;
        this.productCode = productCode;
        this.applyPolicyNo = applyPolicyNo;
    }

}
